package com.ruoyi.web.controller.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "fileClient", url = "http://120.26.114.47:80")
public interface FileClient {

    @PostMapping("/predict")
    Map<String, Object> getFile(@RequestBody Map<String, String> request);

}
